home *** CD-ROM | disk | FTP | other *** search
- /* $Id: fit.h,v 1.7 1995/03/26 14:53:36 drd Exp $ */
-
- /*
- * Header file: public functions in fit.c
- *
- *
- * Copyright of this module: Carsten Grammes, 1993
- * Experimental Physics, University of Saarbruecken, Germany
- *
- * Internet address: cagr@rz.uni-sb.de
- *
- * Permission to use, copy, and distribute this software and its
- * documentation for any purpose with or without fee is hereby granted,
- * provided that the above copyright notice appear in all copies and
- * that both that copyright notice and this permission notice appear
- * in supporting documentation.
- *
- * This software is provided "as is" without express or implied warranty.
- */
-
-
- #ifndef FIT_H /* avoid multiple inclusions */
- #define FIT_H
-
- #ifdef EXT
- #undef EXT
- #endif
-
- #ifdef FIT_MAIN
- #define EXT
- #else
- #define EXT extern
- #endif
-
- #include "type.h"
- #include "plot.h"
-
- #ifndef ANSI_CHECK
- #include "ansichek.h"
- #endif
-
- #define FIT_SKIP "FIT_SKIP"
-
- EXT char *fit_index;
- EXT char fitbuf[256];
-
-
- /******* public functions ******/
-
- EXT char *get_next_word __P((char **s, char *subst));
-
- #ifndef STRNICMP
- # ifdef STRNCASECMP
- # define strnicmp strncasecmp
- # else
- # define NEED_STRNICMP
- EXT int strnicmp __P((char *s1, char *s2, int n));
- # endif
- #endif
-
- EXT void init_fit __P((void));
- EXT void setvar __P((char *varname, struct value data));
- EXT int getivar __P((char *varname));
- EXT void update __P((char *pfile));
- EXT void do_fit __P((void));
-
- /********* Macros *********/
-
- #define Eex(a) {sprintf (fitbuf+9, a); error_ex ();}
- #define Eex2(a,b) {sprintf (fitbuf+9, a,b); error_ex ();}
- #define Eex3(a,b,c) {sprintf (fitbuf+9, a,b,c); error_ex ();}
-
- EXT void error_ex __P((void));
-
- #endif
-